package models

import (
	"go-admin/common/models"
)

type Cluster struct {
	models.Model

	Name       string `json:"name" gorm:"type:varchar(128);comment:名称"`
	Address    string `json:"address" gorm:"type:varchar(255);comment:地址"`
	Credential string `json:"credential" gorm:"type:text;comment:凭据"`
	Remark     string `json:"remark" gorm:"type:int;comment:备注"`
	models.ModelTime
	models.ControlBy
}

func (Cluster) TableName() string {
	return "cluster"
}

func (e *Cluster) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Cluster) GetId() interface{} {
	return e.Id
}
